import { AddFormatFunc, variableCreatedlRuleType } from "../types";

AddFormatFunc<variableCreatedlRuleType>({

	type: "VAR_CREATED",

	handle: (rule, FMC) => {
		return `${rule[1].length === 0 ? "" : `${rule[1][0]} `}${FMC(rule[2])}${rule[3].length === 0 ? "" : `: ${FMC(rule[3])}`} ${rule[4]} ${FMC(rule[5])}`;
	},

})
